#include "GBMors.h"
#include "reg52.h" 

sbit LSA = P2^2;
sbit LSB = P2^3;
sbit LSC = P2^4;


void showView(u8 duan[])
{
	u8 i;
	for(i=0;i<8;i++)
	{
		switch(i)	 
		{
			case(0):
				LSA=0;LSB=0;LSC=0; break;
			case(1):
				LSA=1;LSB=0;LSC=0; break;
			case(2):
				LSA=0;LSB=1;LSC=0; break;
			case(3):
				LSA=1;LSB=1;LSC=0; break;
			case(4):
				LSA=0;LSB=0;LSC=1; break;
			case(5):
				LSA=1;LSB=0;LSC=1; break;
			case(6):
				LSA=0;LSB=1;LSC=1; break;
			case(7):
				LSA=1;LSB=1;LSC=1; break;
		}
		P0=duan[i];
		delay(100); 
		P0=0x00;
	}
}
